#!/usr/bin/env bash

DIR=$(realpath $0) && DIR=${DIR%/*}
cd $DIR
set -ex

rm -rf volo-gen src/lib.rs
volo init --includes=../api ragsrv ../api/api.proto
bun i
bun x volo_regen
cargo fmt
